package com.yyzw.activiti.modeler.service;

import org.activiti.engine.impl.pvm.process.ActivityImpl;

import java.util.Map;

public interface EndTaskService {
    ActivityImpl findActivitiImpl(String taskId, String end) throws Exception;

    public void commitProcess(String taskId, Map<String,Object> variables, String activityId)throws Exception;

    /***
     * 流程回退
     * @param taskId
     * @param activityId
     * @param variables
     * @throws Exception
     */
    public void backProcess(String taskId,String activityId,Map<String,Object> variables) throws Exception;
}
